package top.fangw.admin.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import top.fangw.common.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import top.fangw.common.core.entity.CreateEntityWithOutId;
import top.fangw.common.core.entity.TenantCreateEntity;

/**
 * <p>
 * 用途：角色与菜单的关联关系表
 * </p>
 *
 * @author fangw
 * @since 2024-03-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tbl_sys_role_join_menu")
@Schema(name = "SysRoleJoinMenu", description = "用途：角色与菜单的关联关系表")
public class SysRoleJoinMenu extends CreateEntityWithOutId {


    @Schema(description = "角色id")
    @TableId("role_id")
    private String roleId;

    @Schema(description = "菜单id")
    @TableField(value = "menu_id", insertStrategy = FieldStrategy.ALWAYS)
    private String menuId;

    @Schema(description = "菜单path")
    @TableField(value = "menu_path")
    private String menuPath;

    @Schema(description = "菜单权限")
    @TableField(value = "data_scope")
    private String dataScope;

    @Schema(description = "租户id")
    @TableField("tenant_id")
    private String tenantId;
}
